package com.ruoyi.nongjt.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * @author L
 * @version 1.0
 * @date 2025/9/26 13:29
 * @see http://baidu.com
 */
@Data
public class NjtInspectionRecord {
    @Excel(name = "主键ID")
    private Long id;

    @Excel(name = "合格证编号")
    private String certificateCode;

    @Excel(name = "检查人员ID")
    private Long inspectorId;

    @Excel(name = "检查人员姓名")
    private String inspectorName;

    @Excel(name = "检查部门ID")
    private Long deptId;

    @Excel(name = "检查部门名称")
    private String deptName;

    @Excel(name = "生产主体名称")
    private String entityName;

    @Excel(name = "法人姓名")
    private String legalPerson;

    @Excel(name = "联系方式")
    private String contactPhone;

    @Excel(name = "检查产品名称")
    private String inspectedProduct;

    @Excel(name = "检查地点")
    private String inspectionPlace;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT")
    @Excel(name = "检查时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inspectionTime;

    @Excel(name = "检查意见")
    private String inspectionOpinion;

    @Excel(name = "合格证开具是否规范", dictType = "njt_standard_flag")
    private Integer isStandard;

    @Excel(name = "是否使用禁限用农药", dictType = "njt_forbidden_pesticide")
    private Integer isForbiddenPesticide;

    @Excel(name = "检查记录照片URL")
    private String photoUrls;

    private Integer delFlag;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}